package com.cyf.app.service;

import com.cyf.app.network.bean.*;
import com.cyf.wechat.network.bean.WechatBusinessRsp;

import java.util.Map;

/**
 * app相关支付接口
 * Created by cage on 2017/2/15.
 */
public interface AppPayService {

    /**
     * APP微信付款统一下单
     *
     * @param req
     * @return
     */
    AppWxpayUnifiedOrderRsp wxpayUnifiedOrder(AppWxpayUnifiedOrderReq req);

    /**
     * 微信公众号月卡延期/充值退费
     *
     * @param req
     * @return
     */
    AppWxpayUnifiedOrderRsp wxpayMonthlyOrder(AppWxpayUnifiedOrderReq req);

    /**
     * 订单号
     *
     * @param orderNo
     * @return
     */
    WechatBusinessRsp monthlyOrderResult(String orderNo);

    /**
     * APP付款后查询支付结果
     *
     * @param req
     * @return
     */
    AppWxpayQueryOrderRsp wxpayQueryOrder(AppWxpayQueryOrderReq req);

    /**
     * APP支付宝付款下单
     *
     * @param req
     * @return
     */
    AppAlipayUnifiedOrderRsp alipayUnifiedOrder(AppAlipayUnifiedOrderReq req);

    /**
     * APP支付宝：查询交易结果
     *
     * @param req
     * @return
     */
    AppAlipayQueryOrderRsp alipayQueryOrder(AppAlipayQueryOrderReq req);
}
